package com.itheima.user.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.userDto.LoginDto;
import com.itheima.user.service.ApUserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * APP用户表(ApUser)表控制层
 *
 * @author makejava
 * @since 2022-04-18 18:16:20
 */
@RestController
@RequestMapping("/api/v1/login")
public class ApUserController {
    /**
     * 服务对象
     */
    @Resource
    private ApUserService apUserService;

    //用户登录
    @PostMapping("/login_auth")
    public ResponseResult login(@RequestBody LoginDto loginDto){

        return apUserService.login(loginDto);
    }

}

